<template>
  <div class="err">
    <p>404</p>
    <p class="text">不好网页丢失了!</p>
    <p class="num">{{ num }}</p>
  </div>
</template>

<script>
export default {
  name: 'SellManagerIndex',

  components: {},

  directives: {},

  data() {
    return {
      num: 3
    }
  },

  mounted() {
    const timer = setInterval(() => {
      this.num = this.num - 1
      if (!this.num) {
        clearInterval(timer)
        this.$router.push('/')
      }
    }, 1000)
  },

  methods: {}
}
</script>

<style lang="less" scoped>
.err {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: #2d3a4b;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 80px;
  font-family: 'Courier New', Courier, monospace;
  .text {
    font-size: 20px;
  }
  .num {
    font-size: 16px;
    margin-top: 20px;
  }
}
</style>
